package com.lsongh.springboot2.entity;

/**
 * 统一封装返回的结果
 * @param <T>
 */
public class Result<T> {
    //错误码
    private Integer code;
    //message
    private  String message;
    //具体返回结果
    private  T body;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public T getBody() {
        return body;
    }

    public void setBody(T body) {
        this.body = body;
    }
}
